package com.hp.bon.sgw.bean;

public class CapabilityLifeBean {
	private String hostId;
	private String serviceContextId;
	private String lifeRule;			//cron表达式
	private String appName;
	private String lifeFlag;
	
	
	public String getLifeFlag() {
		return lifeFlag;
	}
	public void setLifeFlag(String lifeFlag) {
		this.lifeFlag = lifeFlag;
	}
	public String getHostId() {
		return hostId;
	}
	public void setHostId(String hostId) {
		this.hostId = hostId;
	}
	public String getServiceContextId() {
		return serviceContextId;
	}
	public void setServiceContextId(String serviceContextId) {
		this.serviceContextId = serviceContextId;
	}
	public String getLifeRule() {
		return lifeRule;
	}
	public void setLifeRule(String lifeRule) {
		this.lifeRule = lifeRule;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getLifeKey(){
		return getLifeKey(this.hostId, this.serviceContextId);
	}
	
	public static String getLifeKey(String hostId, String serviceContextId){
		return String.format("%s<%s>", hostId, serviceContextId);
	} 
	
}
